package javase2.day05.thread;

public class Demo1 {
	public static void main(String[] args){
		Person1 person1= new Person1();
		Person2 person2=new Person2();
		Person2 person3 = new Person2();
		person1.start();
		person2.start();
		person3.start();
	}
}
class Person1 extends Thread{
	public void run(){
		for(int i=0;i<100;i++){
			System.out.println("who are you");
		}
	}
}
class Person2 extends Thread{
	public void run(){
		for(int i=0;i<100;i++){
			System.out.println("查水表的");
		}
	}
}